package cn.ucox.web.ms.polling;

import java.util.List;

/**
 * 加载数据集合
 *
 * @author chenw
 * @create 2017-05-11 12:01
 * @email javacspring@gmail.com
 */
public class DataBucket {

    private int totalRows;
    private long transactionId;
    private List<SyncData> syncData;

    private long syncTime;
    private long dataSize;
    private int packages;

    //上一次同步时间(sst)
    private long syncStartTime;
    //上一次数据同步任务结束时间(set)
    private long syncEndTime;

    /**
     * 已处理完成数据包
     */
    private int donePackages;

    public int getTotalRows() {
        return totalRows;
    }

    public void setTotalRows(int totalRows) {
        this.totalRows = totalRows;
    }

    public long getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(long transactionId) {
        this.transactionId = transactionId;
    }

    public List<SyncData> getSyncData() {
        return syncData;
    }

    public void setSyncData(List<SyncData> syncData) {
        this.syncData = syncData;
    }

    public long getDataSize() {
        return dataSize;
    }

    public void setDataSize(long dataSize) {
        this.dataSize = dataSize;
    }

    public int getPackages() {
        return packages;
    }

    public void setPackages(int packages) {
        this.packages = packages;
    }

    public int getDonePackages() {
        return donePackages;
    }

    public void setDonePackages(int donePackages) {
        this.donePackages = donePackages;
    }

    public long getSyncTime() {
        return syncTime;
    }

    public void setSyncTime(long syncTime) {
        this.syncTime = syncTime;
    }

    public long getSyncStartTime() {
        return syncStartTime;
    }

    public void setSyncStartTime(long syncStartTime) {
        this.syncStartTime = syncStartTime;
    }

    public long getSyncEndTime() {
        return syncEndTime;
    }

    public void setSyncEndTime(long syncEndTime) {
        this.syncEndTime = syncEndTime;
    }
}
